package com.don.beetl.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Teacher {
	private String id = "";
	private String name = "";
	private boolean sex = false;
	private Date date = null;
	private int age;

	private List<Student> students = new ArrayList<Student>();

	public void addStudent(Student student) {
		this.students.add(student);
	}

	public List<Student> listStudent() {
		return this.students;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isSex() {
		return sex;
	}

	public void setSex(boolean sex) {
		this.sex = sex;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public List getStudents() {
		return students;
	}


	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

}
